home *** CD-ROM | disk | FTP | other *** search
/ Ray Dream Studio 5 / Ray Dream.iso / mac / Samples / Formulas / Shader < prev    next >
Encoding:
Text File  |  1997-06-22  |  98 b   |  6 lines  |  [TEXT/ttxt]

  1. a=2*x+PI/2;
  2. b=2*y+2*PI*p1;
  3. c=2*z+2*PI*p2;
  4. red=(1+sin(a))/2;
  5. green=(1+sin(b))/2;
  6. blue=(1+sin(c))/2;